﻿using FluentNHibernate.Mapping;
using easyccms.BusinessLayer.Entities;

namespace easyccms.Nhibernate.Mappings
{
   public class UserOnlineMap: ClassMap<UserOnline>
   {
       public UserOnlineMap()
       {
           Table("UserOnline");
           Id(x => x.UserOnlineId);
           HasOne(x => x.User);
           Map(x => x.Session);
           Map(x => x.LastAction);
       }
    }
}
